package com.imooc.ad.exception;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Created by lzq on 2019/3/8
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class MyException extends RuntimeException{


    private Integer code;

    public MyException(String message,Integer code) {
        super(message);
        this.code=code;

    }

}
